home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZRSTWND.C < prev    next >
Text File  |  1989-04-09  |  796b  |  27 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │ Title   : jzrstwnd                                 │
  4. │ Purpose : Restore a window to a given set of coordinates             │
  5. │                                         │
  6. │    Written by Jack Zucker - 75766,1336    301-794-5950  on 1/15/85      │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8. */
  9. #include <jaz.h>
  10. #include <jzscreen.h>
  11. jzrstwnd ( fwindow )
  12. TWINDOW *fwindow;
  13. {
  14.   int wscrseg;
  15.   int wdseg;
  16.  
  17.   wdseg = getds();
  18.  
  19.   if (MEMB(0x40,0x49)==3)    /* true if color screen   */
  20.     wscrseg = 0xB800;        /* color mode */
  21.   else
  22.     wscrseg = 0xB000;        /* mono  mode */
  23.  
  24.   moves(wdseg,fwindow->buf,wscrseg,160*fwindow->row1 + (fwindow->col1 << 1),
  25.     fwindow->row2-fwindow->row1+1,fwindow->col2-fwindow->col1+1);
  26. }
  27.